<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="pojo.*,dao.*,Service.*,Servlet.*,java.util.*"%>


<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
</head>
<body style="border-top: 2px">
<form method="post" action="" id="listform">
	<div class="panel admin-panel">
   <div class="panel-head"><strong class="icon-reorder">竞赛成果</strong></div>
   <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <li> <a class="button border-main icon-plus-square-o" href="jingsai.jsp"> 新增竞赛成果</a> </li>
        <if condition="$iscid eq 1">
        </if>
       
      </ul>
    </div>
    <table class="table table-hover text-center">
      <tr>
        <th>序号</th>
        <th>竞赛形式</th>
        <th>赛事名称</th>
        <th>作品名称</th>
        <th>获奖学生</th>
        <th>获奖时间</th>
        <th>计算机工程学院</th>
		<th>发证单位</th>
		<th>赛事级别</th>
		<th>获奖等级</th>
		<th>是否是优秀指导教师</th>
		<th>参与人员</th>
		<th width="5%">操作</th>
      </tr>
      <volist name="list" id="vo">
       <%
		PageBean<Competition> pb = (PageBean<Competition>)(request.getAttribute("pb"));
		List<Competition> List=pb.getList();
	%>
	<%
for(Competition p:List){
%>
        <tr>
          <td><%=p.getId() %></td>
          <td><a href="ProjectDetail.html"><font color="#00CC99"><%=p.getWay() %></font></a></td>
          <td><%=p.getEname() %></td>
          <td><%=p.getWorks() %></td>
          <td><%=p.getPwinners() %></td>
          <td><%=p.getPtime() %></td>
		  <td><%=p.getUnit() %></td>
		  <td><%=p.getCunit() %></td>
		  <td><%=p.getLevel() %></td>
		  <td><%=p.getGuide() %></td>
		  <td><%=p.getParticipants() %></td>
		  <td><%=p.getNote() %></td>
		  <td>修改</td>
           </tr>
           <%} %>
   		 <td colspan="8">
        	<div class="pagelist"> 
        	<%int CPage= pb.currentPage;%>
        	<a href="<%=request.getContextPath()%>/ProjectServlet?method=showAll&pageSize=5&currentPage=<%=CPage-1%>">上一页</a> 
        	<%int maxPage= pb.totalPage;%>
        	<%
			for(int i=1;i<=maxPage;i++){
			%>
        	<a href="<%=request.getContextPath()%>/ProjectServlet?method=showAll&pageSize=5&currentPage=<%=i%>">
			<%=i%></a>
        	<%}%>
        	<a href="<%=request.getContextPath()%>/ProjectServlet?method=showAll&pageSize=5&currentPage=<%=CPage+1%>">下一页</a>
        	<a href="<%=request.getContextPath()%>/ProjectServlet?method=showAll&pageSize=5&currentPage=<%=maxPage%>">尾页</a> 
        	</div>
        </td>
    </table>
   </div>
   </div>
  </div>
</form>

</body>
</html>